import axios from 'axios'
import baseUrl from '../../util/url.js'
const detailUrl = baseUrl + 'api.php/records/detail'
export default {
    namespaced: true,
    state: {
        
    },
    mutations: {},
    actions: {
        getSearchClassDetailData(context,title){
            return new Promise(function(resolve,reject){
                axios({
                    url:detailUrl,
                    params:{
                        transform:1,
                        filter:'name,cs,'+title,
                        order:'id,desc',
                        page:'1,10'
                    }  
                })
                .then(data=>{
                    resolve(data.data.records)
                })
            })
        }
    }
}